<template>
    <div>
        <button @click="onClick">点击刷新</button>
        <button @click="change">点击弹框</button>
        <Counter/>
        
        
    
    </div>
</template>
<script>
// import Loading from "../components/loading/index"
import Counter from "../components/Counter"
// import cart from "../components/cart"
  
export default {
    name:"Home",
    components:{
        Counter,
        
    
    },
    data() {
        return {
         
        }
    },
    mounted() {
        this.$API.getStoreList().then(res=>{
            console.log(res);
        }).catch((error)=>{
            console.log(error);
        })
    },   
    methods: {
        onClick(){
            // Loading.serve()
            this.$loading()
        },
        change(){
            this.$message("我是一条消息")
        }
    },
}
</script>